import Vue from 'vue'
import MinRequest from '@/common/libs/MinRequest.js'

const minRequest = new MinRequest();
const minRequest1 = new MinRequest();
import baseConfig from '@/config/baseUrl.js'
// 设置默认配置
minRequest.setConfig((config) => {
  config.baseURL = baseConfig.baseUrl
  // config.baseURL = config.baseURL + '/casugn-business'
  config.baseURL = config.baseURL
  return config
})
// 设置系统默认配置
minRequest1.setConfig((config) => {
  config.baseURL = baseConfig.baseUrl
  config.baseURL = config.baseURL + '/casugn-system'
  return config
})
// 请求拦截器
minRequest.interceptors.request((request) => {
  if (request.method === 'POST' && !request.hideLoad) {
    uni.showLoading({
      title: '请稍后'
    })
  }
  return request
})
// 响应拦截器
minRequest.interceptors.response((response, rej) => {
  //console.log('响应拦截器：', response)
  if (response.statusCode == 200) {
    //消除加载动画闪动
    setTimeout(() => {
      uni.hideLoading()
    }, 300)
    return response.data
  } else if (response.statusCode == 500 || response.statusCode == '') {
    uni.showToast({
      title: '后台服务未启动或报错',
      icon: 'none'
    });
    return
  } else if (response.statusCode == 400) {
    uni.showToast({
      title: '参数异常或缺少必要参数',
      icon: 'none'
    });
    return
  } else {
    if (response.errMsg == 'request:fail ') {
      uni.showToast({
        title: '网络连接失败或后台服务未启动',
        icon: 'none'
      });
      return
    }
    uni.showToast({
      title: response.data,
      icon: 'none'
    });
    return response.data
  }


})

export default {
  //文件上传接口 新增
  addEbcFileManage(params) {
    return minRequest.post(`/manage/ebcFileManage/add`, params)
  },
  //上传接口 编辑
  editEbcFileManage(params) {
    return minRequest.put(`/manage/ebcFileManage/edit`, params)
  },
  //上传接口 删除
  delEbcFileManage(params) {
    return minRequest.delete(`/manage/ebcFileManage/delete`, params)
  },
  //图片上传接口
  uploadImg() {
    return minRequest.post(`/sys/comm`, params)
  },
  //获取openId
  getOpenIdByCode(params) {
    return minRequest.get(`/wx/code`, params)
  },
  //产品查询列表
  queryListByCategory(params) {
    return minRequest.get(`/product/proProductInfo/listByCategory`, params)
  },
  //产品搜索
  queryListByCondition(params) {
    return minRequest.get(`/product/proProductInfo/listByCondition`, params)
  },
  //产品详情页新增内容
  addProductDetail(params) {
    return minRequest.post(`/product/proProductDetails/add`, params)
  },
  //产品详情页编辑内容
  editProductDetail(params) {
    return minRequest.put(`/product/proProductDetails/edit`, params)
  },
  //当前产品详情页 功能列表
  productFunctionDetail(data) {
    return minRequest.get(`/product/proProductFunction/listByCondition`, data)
  },
  //查询产品详情页内容 (小程序)
  productDetail(id) {
    return minRequest.get(`/product/proProductDetails/queryDetailById?id=${id}`)
  },
  //开新局
  creatGroupInfo(params) {
    return minRequest.post(`/group/info/creatMgGroupInfo`, params)
  },
  //编辑组局
  exitMgGroupInfo(params) {
    return minRequest.put(`/group/info/exitMgGroupInfo`, params)
  },
  // 新好友申请列表
  queryNewFriendList(params) {
    return minRequest.get(`/card/bcCardBuddyAudit/list`, params)
  },
  // 我发送的好友申请
  findMyFriendRecord(params) {
    return minRequest.get(`/card/bcCardBuddyAudit/findMyFriendRecord`, params)
  },
  //短视频部分
  //根据id 查询视频
  getMediaById(params) {
    return minRequest.get(`/media/mrMediaInfo/queryById`, params)
  },
  //查询视频列表 带点赞
  getMediaList(params) {
    return minRequest.get(`/media/mrMediaInfo/listWithPraiseAndCollect`, params)
  },
  //根据id删除视频
  delMediaById(id) {
    return minRequest.delete(`/media/mrMediaInfo/delete?id=${id}`)
  },
  //企业管理
  // //删除企业人员审核状态
  // delMember(id){
  // return minRequest.delete(`/company/bcCompanyCardAudit/delete?id=${id}`)
  // },
  // //编辑企业人员
  // editMember(params){
  // 	return minRequest.put(`/company/bcCompanyCardAudit/edit`,params)
  // },


  // 根据openid查询包含的商店列表
  getMyShop(params) {
    return minRequest.get(`/mall/bcsShopInfo/getMyShop`, params)
  },

  // 商城模块
  // 根据openid查询包含的商店列表
  getMyShop(openId, status) {
    // console.log("试试",params)
    return minRequest.get(`/mall/bcsShopInfo/getMyShop?openId=${openId}&status=${status}`)
  },
  // 根据店铺id获取商店商品列表
  getB2bCShopping(storeId, sort, pageNo, pageSize, keyword, goodsIds, openId) {
    return minRequest.get(
      `/mall/bcsShoppingInfo/getB2bCShopping?storeId=${storeId}&sort=${sort}&pageSize=${pageSize}&pageNo=${pageNo}&keyword=${keyword}&goodsIds=${goodsIds}&openId=${openId}`
    )
  },
  // 根据店铺id获取商店商品列表
  getB2bCShoppingList(params) {
    return minRequest.get(`/mall/bcsShoppingInfo/getB2bCShopping`, params)
  },
  // 获取小黄车列表信息(展示已加入小黄车商品信息)
  getYellowCarLists(params) {
    return minRequest.get(`/mall/bcsShoppingInfo/list`, params)
  },
  // 添加商品进小黄车
  addYellowCar(params) {
    return minRequest.post(`/mall/bcsShoppingInfo/addMyShopping`, params)
  },

  // 圈子首页拉取默认列表
  // getAllCircleList(params) {
  // 	return minRequest.get(`/circle/qzActivity/activityListSearch`, params)
  // },
  // 圈子首页拉取默认列表
  getAllCircleList(params) {
    return minRequest.get(`/circle/qzActivity/pageList`, params)
  },
  // 圈子详情根据id查询
  getCircleInfoListById(params) {
    return minRequest.get(`/circle/qzActivity/activityInfo?id=${params}`)
  },
  // 圈子详情活动是否报名
  // 圈子详情活动报名
  signCircleSuccess(params) {
    return minRequest.get(`/circle/qzActivity/isSign`, params)
  },
  // 圈子详情活动报名
  signCircleSuccess(params) {
    return minRequest.get(`/circle/qzActivity/isSign`, params)
  },
  //编辑活动
  editActive(params) {
    return minRequest.post(`/circle/qzActivity/editActivity`, params)
  },
  //删除活动
  deleteActive(id) {
    return minRequest.delete(`/circle/qzActivity/delete?id=${id}`)
  },
  // 圈子详情活动报名
  signCircleActive(params) {
    return minRequest.get(`/circle/qzActivity/signActivity`, params)
  },
  // 圈子详情取消报名
  cancleSignCircleActive(params) {
    return minRequest.get(`/circle/qzActivity/cancelActivity`, params)
  },
  // 发布活动
  releaseActive(params) {
    return minRequest.post(`/circle/qzActivity/publishActivity`, params)
  },
  // 商机列表搜索
  getBusinessList(params) {
    return minRequest.get(`/circle/qzBusiness/businessListSearch`, params)
  },
  // 发布商机
  releaseBusiness(params) {
    return minRequest.post(`/circle/qzBusiness/releaseBusiness`, params)
  },
  // 商机详情
  getBusinessListInfo(params) {
    return minRequest.get(`/circle/qzBusiness/queryById?id=${params}`)
  },
  // 商家卡片
  getBusinessCard(params) {
    return minRequest.get(`/card/bcBusinessCard/queryCartById?id=${params}`)
  },
  // 优惠券列表拉取
  getCouponList(params) {
    return minRequest.get(`/mall/bcsCouponInfo/myCoupon`, params)
  },
  // 同步优惠券
  synMyCoupon(params) {
    return minRequest.put(
      `/mall/bcsCouponInfo/syncCoupon`, params)
  },
  handleGroupMembers(params) {
    return minRequest.put(`/group/mgGroupMembers/handleGroupMembers`, params)
  },
  //待发布组局
  waitPullGroupInfo(params) {
    return minRequest.get(`/group/mgGroupInfo/waitPullGroupInfo`, params)
  },
  //待参加组局
  waitJoinGroupInfo(params) {
    return minRequest.get(`/group/mgGroupInfo/waitJoinGroupInfo`, params)
  },
  //查询历史组局
  recordGroupInfo(params) {
    return minRequest.get(`/group/mgGroupInfo/recordGroupInfo`, params)
  },
  //确认参加
  confirmParty(params) {
    return minRequest.get(`/confirmParty`, params)
  },
  // 删除组局信息
  deleteGroupInfo(id) {
    return minRequest.delete(`/group/mgGroupInfo/delete?id=${id}`, id)
  },
  //统计模块总览
  statisticsOverview(params) {
    return minRequest.get(`/statistics/bcViewStatistics/statisticsOverview`, params)
  },
  //统计模块 访客统计排行榜
  statisticsByTime(params) {
    return minRequest.get(`/statistics/bcViewStatistics/statisticsByTime`, params)
  },
  //统计模块 产品排行版
  statisticsVisitTimes(params) {
    return minRequest.get(`/statistics/proProductStatistics/statisticsVisitTimes`, params)
  },
  //查询名片的浏览用户头像、总浏览量和今日浏览量
  queryBrowseInfo(params) {
    return minRequest.get(`/statistics/bcViewStatistics/queryBrowseInfo`, params)
  },
  //名片模块
  //新增
  insertCardInfo(params) {
    return minRequest.post(`/card/bcBusinessCard/insertCardInfo`, params)
  },
  //查询个人名片信息(旧)
  queryCardInfoById(params) {
    return minRequest.get(`/card/bcBusinessCard/queryById`, params)
  },
  //个人名片表-根据名片id查询
  queryCartById(params) {
    return minRequest.get(`/card/bcBusinessCard/queryCartById`, params)
  },
  //根据openId查询当前名片默认信息
  queryCurrentCardByOpenId(params) {
    return minRequest.get(`/card/bcBusinessCard/queryCurrentCard`, params)
  },
  //切换名片
  pdateDefaultCard(params) {
    return minRequest.get(`/card/bcBusinessCard/updateDefaultCard`, params)
  },
  //编辑名片
  updateCardInfo(params) {
    return minRequest.post(`/card/bcBusinessCard/updateCardInfo`, params)
  },
  //删除个人名片
  delMyCard(id) {
    return minRequest.delete(`/card/bcBusinessCard/delete?id=${id}`)
  },
  //把员工从公司里删除
  delMemberCardByCompany(id) {
    return minRequest.delete(`/card/bcBusinessCard/deleteCompanyInfo?id=${id}`)
  },
  //根据openId查询个人名片信息
  queryCardInfoByOpenId(params) {
    return minRequest.get(`/card/bcBusinessCard/queryCartByOpenId`, params)
  },
  //查询名片列表
  queryCardList(params) {
    return minRequest.get(`/card/bcBusinessCard/list`, params)
  },
  //查询收藏的名片列表
  queryCollectCard(params) {
    return minRequest.get(`/card/bcCardBuddy/queryCollectCard`, params)
  },
  //查询最近添加的名片列表
  queryRecentAddCard(params) {
    return minRequest.get(`/card/bcCardBuddy/queryRecentAddCard`, params)
  },
  //查询最近使用的名片列表
  queryRecentCard(params) {
    return minRequest.get(`/card/bcCardBuddy/queryRecentCard`, params)
  },
  //搜索通讯录好友
  queryCardAddBuddy(params) {
    return minRequest.get(`/card/bcBusinessCard/queryCardAddBuddy`, params)
  },
  //搜索共同人脉
  querySameFriends(params) {
    return minRequest.get(`/card/bcCardBuddy/querySameFriends`, params)
  },
  //添加好友(需要审核版)
  addNewFriend(params) {
    return minRequest.post(`/card/bcCardBuddyAudit/add`, params)
  },
  //通过好友申请
  auditNewFriend(id, status) {
    return minRequest.put(`/card/bcCardBuddyAudit/audit?id=${id}&status=${status}`)
  },
  // 根据openid 查询默认通讯录好友
  queryDefaultCard(params) {
    return minRequest.get(`/card/bcCardBuddy/queryDefaultCard`, params)
  },
  //删除通讯录好友
  delBcCardBuddy(id) {
    return minRequest.delete(`/card/bcCardBuddy/delete?id=${id}`)
  },
  //更改收藏状态   后台接口接收参数
  updateCollect(id, status) {
    return minRequest.put(`/card/bcCardBuddy/updateCollect?id=${id}&status=${status}`)
  },
  //短视频部分
  //更改短视频收藏记录
  updateCollectRecord(params) {
    return minRequest.post(`/media/mrMediaRecord/updateCollectRecord`, params)
  },
  //更改短视频点赞
  updatePraiseRecord(params) {
    return minRequest.post(`/media/mrMediaRecord/updatePraiseRecord`, params)
  },
  // 小程序-生成图片
  getPhotoUrl(params) {
    return minRequest.get(`/wx/getPhotoUrl`, params)
  },
  //企业管理
  // 企业人员列表查询
  queryMembersList(params) {
    return minRequest.get(`/company/bcCompanyCardAudit/list`, params)
  },
  // //删除企业人员审核状态
  // delMember(id){
  // return minRequest.delete(`/company/bcCompanyCardAudit/delete?id=${id}`)
  // },
  // //编辑企业人员
  // editMember(params){
  // 	return minRequest.put(`/company/bcCompanyCardAudit/edit`,params)
  // },
  //查询待审核名片列表
  queryCardExamineList(params) {
    return minRequest.get(`/company/bcCompanyCardAudit/list`, params)
  },
  //审核不通过
  rejectMember(id) {
    return minRequest.put(`/company/bcCompanyCardAudit/audit?status=2&id=${id}`)
  },
  //审核通过
  passMember(id) {
    return minRequest.put(`/company/bcCompanyCardAudit/audit?status=1&id=${id}`)
  },
  //提交企业认证
  addCompanyAttestation(params) {
    return minRequest.post(`/company/bcCompanyManage/add`, params)
  },
  //编辑企业认证
  editCompanyAttestation(params) {
    return minRequest.put(`/company/bcCompanyManage/edit`, params)
  },
  //查询企业认证状态列表
  queryCompanyExamineList(params) {
    return minRequest.get(`/company/bcCompanyManage/list`, params)
  },
  // 根据openid查询包含的商店列表
  getMyShop(openId, status) {
    return minRequest.get(`/mall/bcsShopInfo/getMyShop?openId=${openId}&status=${status}`)
  },
  // 根据openid查询包含的商店列表
  getMyShopList(params) {
    return minRequest.get(`/mall/bcsShopInfo/getMyShop`, params)
  },
  //获取个人标签默认列表
  getDefaultTags(params) {
    return minRequest.get(`/card/bcCardLabel/list?status=0`, params)
  },
  //获取标签默认列表
  queryDefaultLabel() {
    return minRequest.get(`/card/bcCardLabel/queryDefaultLabel`)
  },
  //获取热门商品
  getHotGoods(params) {
    return minRequest.get(`/mall/bcsShoppingInfo/list`, params)
  },
  // 转增优惠券
  shareCoupon(couponCodes, fromUnionId, endUnionId) {
    return minRequest.post(
      `/mall/bcsCouponInfo/shareCoupon?couponCodes=${couponCodes}&fromUnionId=${fromUnionId}&endUnionId=${endUnionId}`
    )
  },
  //查询聊天室列表
  queryChatList(params) {
    return minRequest.get(`/mc/message/mcChatRoom/list`, params)
  },
  //查询我的聊天室列表
  queryMyChatList(params) {
    return minRequest.get(`/mc/message/mcMyChat/list`, params)
  },
  // 搜索好友名片
  queryCardByCondition(params) {
    return minRequest.post(`/card/bcCardBuddy/queryCardByCondition`, params, {}, {
      hideLoad: true
    })
  },
  // 获取好友列表-消息
  queryChatFriend(params) {
    return minRequest.post(`/card/bcCardBuddy/queryChatFriend`, params, {}, {
      hideLoad: true
    })
  },
  // 上传视频 /media/mrMediaInfo/add
  addVideoSubmit(params) {
    return minRequest.post(`/media/mrMediaInfo/add`, params)
  },
  // 编辑视频
  editVideoSubmit(params) {
    return minRequest.put(`/media/mrMediaInfo/edit`, params)
  },
  //创建单人聊天室
  createChatRoom(params) {
    return minRequest.post(`/mc/message/mcChatRoom/add`, params)
  },
  //进入聊天室
  goOnline(params) {
    return minRequest.get(`/mc/message/mcMyChat/goOnline`, params)
  },
  //发送聊天信息
  sendMessage(params) {
    // return minRequest.post(`/mc/message/mcMyChat/push`, params)
    return minRequest.post(`http://192.168.3.61:8080/mc/message/mcMyChat/push`, params)
  },
  //移除群成员
  removeRoomMember(params) {
    return minRequest.put(`/mc/message/mcMyChat/removeRoomMember`, params)
  },
  //修改群名称
  updateRoomName(params) {
    return minRequest.put(`/mc/message/mcChatRoom/updateRoomName`, params)
  },
  //撤回信息
  revokeMessage(id) {
    return minRequest.put(`/mc/message/mcChatInfo/revokeInfo?infoId=${id}`)
  },
  //查询聊天记录
  queryChatHistory(params) {
    return minRequest.get(`/mc/message/mcChatInfo/getChatRecord`, params)
  },
  //删除聊天
  delChatRoom(id) {
    return minRequest.delete(`/mc/message/mcChatRoom/delete?id=${id}`)
  },
  //活动搜索
  activityListSearch(params) {
    return minRequest.get(`/circle/qzActivity/activityListSearch`, params)
  },
  //商机搜索
  businessListSearch(params) {
    return minRequest.get(`/circle/qzBusiness/businessListSearch`, params)
  },
  //进入聊天室
  // joinChatRoomTwo(params){
  //    return minRequest.get(`/join/two`,params)
  //    // return minRequest.post(`/api/room/join`,params)
  // }
  // }
  // 添加商铺
  addShopToList(params) {
    return minRequest.post(`/mall/bcsShopInfo/addMyShop`, params)
  },
  //user模块功能配置
  queryFunctionList() {
    return minRequest.get(`/manage/ebcFunction/queryFunctionList`)
  },

  // //查询组局聊天室信息
  // queryPartyChatRoomInfo(params) {
  // 	return minRequest.get(``, params)
  // },
  // //修改聊天室内信息
  // editMyChat(params) {
  // 	return minRequest.put(`/mc/message/mcMyChat/edit`, params)
  // },
  //修改密聊中的昵称
  changeNick(nickname, openId, roomId) {
    return minRequest.put(
      `/mc/message/mcMyChat/updateNickname?nickname=${nickname}&openId=${openId}&roomId=${roomId}`)
  },

  //user模块功能配置
  queryAddStoreList(keyword, sort, pageNo, pageSize) {
    return minRequest.get(
      `/mall/bcsShopInfo/getB2bCShop?keyword=${keyword}&sort=${sort}&pageNo=${pageNo}&pageSize=${pageSize}`)
  },
  //小黄车删除商品
  deleteYellow(id) {
    return minRequest.delete(`/mall/bcsShoppingInfo/delete?id=${id}`)
  },
  // 获取抢券凭证
  queryRobCouponVoucher(couponCodes, fromUnionId) {
    return minRequest.get(`/mall/bcsCouponGrant/robCoupon?couponCodes=${couponCodes}&fromUnionId=${fromUnionId}`)
  },
  // 优惠券抢券
  robCouponVoucher(voucher, endUnionId) {
    return minRequest.post(`/mall/bcsCouponGrant/robCoupon?voucher=${voucher}&endUnionId=${endUnionId}`)
  },
  // 查询通讯录列表的接口
  queryRobCouponVoucher(params) {
    return minRequest.get(`/mc/message/mcChatRoom/queryMyRoomList`, params)
  },
  //访问统计新增统计数据
  addStatistic(params) {
    return minRequest.post(`/statistics/bcViewStatistics/add`, params)
  },
  //产品统计新增数据
  addProductStatistics(params) {
    return minRequest.post(`/statistics/proProductStatistics/add`, params)
  },
  //组局中人员标签-添加
  addPartyMembersTag(params) {
    return minRequest.post(`/group/mgGroupLabel/add`, params)
  },
  // 浏览商机/circle/qzBusiness/visitBusiness
  visitBusiness(id) {
    return minRequest.get(`/circle/qzBusiness/visitBusiness?id=${id}`)
  },
  // 商机详情表
  queryBusinessInfos(id) {
    return minRequest.get(`/circle/qzBusinessDetail/queryById?id=${id}`)
  },
  //快速组局模块
  //创建快速组局
  createQuickGroup(params) {
    return minRequest.post(`/book/txlGroup/add`, params)
  },
  //获取快速组局查询列表
  getQuickGruopList(params) {
    return minRequest.get(`/book/txlGroup/list`, params)
  },
  //根据id删除快速组局
  delQuickGruopListById(id) {
    return minRequest.delete(`/book/txlGroup/delete?id=${id}`)
  },
  //根据id编辑快速组局
  editQuickGruopListById(params) {
    return minRequest.put(`/book/txlGroup/edit`, params)
  },
  // 添加快速组局人员
  addQuickGroupMembers(params) {
    return minRequest.post(`/book/txlGroupMember/add`, params)
  },
  //查询快速组局人员列表
  getQuickGruopMemberList(params) {
    return minRequest.get(`/book/txlGroupMember/list`, params)
  },
  //查询快速组局人员列表 用来转交管理权,过滤了未创建名片人员
  getQuickGruopMemberListForTransfer(params) {
    return minRequest.get(`/book/txlGroupMember/queryMemberTransfer`, params)
  },
  //删除群组人员
  delQuickGruopMemberById(id) {
    return minRequest.delete(`/book/txlGroupMember/delete?id=${id}`)
  },
  //转移群组管理权
  transferGroup(groupId, receiveOpenId, transferOpenId) {
    return minRequest.put(
      `/book/txlGroupMember/ransferAuthority?groupId=${groupId}&receiveOpenId=${receiveOpenId}&transferOpenId=${transferOpenId}`
    )
  },
  // 退出快速建群 groupId 组群Id openId操作人 memberOpenId 组群成员openId
  leaveQuickGroup(groupId, openId, memberOpenId = '') {
    return minRequest.put(
      `/book/txlGroupMember/withdrawFromGroup?groupId=${groupId}&openId=${openId}&memberOpenId=${memberOpenId}`
    )
  },
  // 产品类别-添加
  addProductCategory(params) {
    return minRequest.post(`/product/proProductCategory/add`, params)
  },
  //产品类别-删除
  delProductCategoryById(id) {
    return minRequest.delete(`/product/proProductCategory/delete?id=${id}`)
  },
  //产品类别-编辑
  editProductCategory(params) {
    return minRequest.put(`/product/proProductCategory/edit`, params)
  },
  //产品类别-查询
  getProductCategoryList(params) {
    return minRequest.get(`/product/proProductCategory/list`, params)
  },
  //产品类别-id查询
  getProductCategoryById(id) {
    return minRequest.get(`/product/proProductCategory/queryById?id=${id}`)
  },
  // 产品信息-添加
  addProductInfo(params) {
    return minRequest.post(`/product/proProductInfo/add`, params)
  },
  //产品信息-删除
  delProductInfoById(id) {
    return minRequest.delete(`/product/proProductInfo/delete?id=${id}`)
  },
  //产品信息-编辑
  editProductInfo(params) {
    return minRequest.put(`/product/proProductInfo/edit`, params)
  },
  //产品信息-查询
  getProductInfoList(params) {
    return minRequest.get(`/product/proProductInfo/list`, params)
  },
  //产品信息-id查询
  getProductInfoById(id) {
    return minRequest.get(`/product/proProductInfo/queryById?id=${id}`)
  },
  //产品详情查询
  getProductDetaiById(id) {
    return minRequest.get(`/product/proProductDetails/queryById?id=${id}`)
  },

  //企业首页发布内容
  addCompanyIndexPage(params) {
    return minRequest.post(`/company/bcCompanyAbout/add`, params)
  },
  //企业首页内容获取
  getCompanyById(id) {
    return minRequest.get(`/company/bcCompanyAbout/queryByCompanyId?companyId=${id}`)
  },
  //编辑企业首页主页
  editCompanyIndexPage(params) {
    return minRequest.put(`/company/bcCompanyAbout/edit`, params)
  },
  // 发布采购信息
  purchaseSubmit(params) {
    return minRequest.post(`/circle/boProductInfo/add`, params)
  },
  // 供应产品添加保存
  supplyProductSave(params) {
    return minRequest.post(`/circle/boSupplierProduct/add`, params)
  },
  // 供应产品添加保存编辑
  supplyProductSaveEdit(params) {
    return minRequest.put(`/circle/boSupplierProduct/edit`, params)
  },
  //快速建群 查询历史记录
  queryQuickChatRecord(params) {
    return minRequest.get(`/book/txlGroup/queryChatRecord`, params)
  },
  //快速建群-根据groupId 查询对应的群相册
  queryAlbumByGroupId(groupId) {
    return minRequest.get(`/album/txlAlbumInfo/queryByGroupId?id=${groupId}`)
  },
  //根据群相册id查询照片列表
  queryPhotoByAlbumId(params) {
    return minRequest.get(`/book/txlAlbumPhoto/list`, params)
  },
  //根据群相册id查询照片列表
  getQuickGroupPictures(params) {
    return minRequest.get(`/book/txlAlbumPhoto/listForMini`, params)
  },
  //上传照片到相册中
  addAlbumPhoto(params) {
    return minRequest.post(`/book/txlAlbumPhoto/add`, params)
  },
  // 供应产品列表拉取
  querySupplyProductLists() {
    return minRequest.get(`/circle/boSupplierProduct/list`)
  },
  // 供应产品删除通过id
  deleteSupplyProduct(id) {
    return minRequest.delete(`/circle/boSupplierProduct/delete?id=${id}`)
  },
  // 供应产品填写所有信息保存
  supplyAllInfoSava(params) {
    return minRequest.post(`/circle/boSupplierInfo/add`, params)
  },
  // 供求市场
  // 找采购列表查询

  queryMyCouponLists(parmas) {
    return minRequest.get(
      `/circle/boProductInfo/myCoupon`, parmas)
  },
  // 采购列表详情查询 采购产品信息-通过id查询
  queryMyCouponListsById(id) {
    return minRequest.get(`/circle/boProductInfo/queryById?id=${id}`)
  },

  //找供应列表信息查询 /circle/boSupplierInfo/myCoupon
  queryMySupplyLists(params) {
    return minRequest.get(`/circle/boSupplierProduct/list`, params)
  },
  //供应列表详情 通过id 信息查询 /circle/boSupplierProduct/queryById
  queryMySupplyListsById(id) {
    return minRequest.get(`/circle/boSupplierProduct/queryById?id=${id}`)
  },
  // 删除我的采购信息
  deleteMyBuyListsById(id) {
    return minRequest.delete(`/circle/boProductInfo/delete?id=${id}`)
  },
  // 查询我的供应商
  queryMySupplyListsByOpenId(name, openId, pageNo, pageSize) {
    return minRequest.get(
      `/circle/boSupplierInfo/myCoupon?name=${name}&openId=${openId}&pageNo=${pageNo}&pageSize=${pageSize}`)
  },
  // 删除我的供应商信息
  deleteMySupplyListsById(id) {
    return minRequest.delete(`/circle/boSupplierInfo/delete?id=${id}`)
  },
  //快速组局 获得我的组群
  queryMyGroupByOpenId(params) {
    return minRequest.get(`/book/txlGroup/queryMyGroupByOpenId`, params)
  },
  //资源模块 新增资源
  addResources(params) {
    return minRequest.post(`/resources/zyResourcesInfo/add`, params)
  },
  //删除资源
  delResources(id) {
    return minRequest.delete(`/resources/zyResourcesInfo/delete?id=${id}`)
  },
  //查询我的资源
  queryMyResources(params) {
    return minRequest.get(`/resources/zyResourcesInfo/selectZyByOpenId`, params)
  },
  //编辑我的资源
  editResources(params) {
    return minRequest.put(`/resources/zyResourcesInfo/edit`, params)
  },
  //搜索资源
  queryResourcesByName(params) {
    return minRequest.get(`/resources/zyResourcesInfo/searchZyByName`, params)
  },
  //资源拓扑图搜索
  queryTopologyChart(params) {
    return minRequest.get(`/card/bcCardBuddy/queryTopologyChart`, params)
  },
  // 添加备忘录
  addMyMemoInfo(params) {
    return minRequest.post(`/memo/mdMemoInfo/add`, params)
  },
  // 修改备忘录
  editMyMemoInfo(params) {
    return minRequest.put(`/memo/mdMemoInfo/edit`, params)
  },
  // 获取备忘录列表
  getMemLists(params) {
    return minRequest.get(`/memo/mdMemoInfo/list`, params)
  },
  // 根据id删除备忘录
  deleteMemById(id) {
    return minRequest.delete(`/memo/mdMemoInfo/delete?id=${id}`)
  },
  // 新建活动并添加参与人员
  releaseNewActive(params) {
    return minRequest.post(`/circle/qzActivity/addActivity`, params)
  },
  getAccessToken() {
    return minRequest1.get(`/isystem/api/wechat/getAccessToken`)
  },
  // 发布采购信息--编辑
  purchaseEditSubmit(params) {
    return minRequest.put(`/circle/boProductInfo/edit`, params)
  },
  // 根据id查询我的供应商
  queryMyHistorySupplyListsById(id) {
    return minRequest.get(`/circle/boSupplierInfo/queryById?id=${id}`)
  },
  //供求市场-找供应-收藏
  collectionToBuy(params) {
    return minRequest.post(`/circle/boRecord/add`, params)
  },
  //供求市场-找供应-取消收藏
  cancleCollectionToBuy(params) {
    return minRequest.put(`/circle/boRecord/deleteByRecordId`, params)
  },
  //未读聊天信息条数
  queryUnreadMessage(params) {
    return minRequest.get(`/mc/message/mcMyChat/unReadNumber`, params)
  },
  //未读新好友数量
  //根据id 查询标签信息
  queryGroupLabelById(id) {
    return minRequest.get(`/group/mgGroupLabel/queryById?id=${id}`)
  },
  //组局人员标签编辑
  editGroupLabel(params) {
    return minRequest.put(`/group/mgGroupLabel/edit`, params)
  },
  // 发布供应信息-查询默认数据
  querySupplyDefault(params) {
    return minRequest.get(`/circle/boSupplierInfo/queryDefaultByOpenId`, params)
  },
  // 发布供应信息-提交新街口
  supplyNewSubmit(params) {
    return minRequest.put(`/circle/boSupplierInfo/edit`, params)
  },
  //统计商品访问次数
  queryStatisticsVisitTimes(params) {
    return minRequest.get(`/mall/bcsShoppingStatistics/statisticsVisitTimes`, params)
  },
  //
  // 商品浏览统计添加
  addShoppingStatistics(params) {
    return minRequest.post(`/mall/bcsShoppingStatistics/add`, params)
  },
  // 查询供求市场-找采购列表页
  queryMarketBuyLists(params) {
    return minRequest.get(`/circle/boProductInfo/list`, params)
  },
  // 添加商铺到代言店鋪（新接口）
  addShopToDYList(params) {
    return minRequest.post(`/mall/bcsShopInfo/addAgentShop`, params)
  },
  // 添加商鋪到直營店鋪（新接口）
  addShopToZYList(params) {
    return minRequest.post(`/mall/bcsShopInfo/addDirectShop`, params)
  },
  // 歷史組局-我發佈的接口
  queryNewRelease(date, openId, status) {
    return minRequest.get(`/group/mgGroupInfo/waitPullGroupInfo?date=${date}&openId=${openId}&status=${status}`)
  },
  // 歷史組局-我參與的接口
  queryNewPartake(date, openId, status) {
    return minRequest.get(`/group/mgGroupInfo/recordGroupInfo?date=${date}&openId=${openId}&status=${status}`)
  },
  // 发布供应信息 拉取供应产品列表
  querySupplyNewProductLists(params) {
    return minRequest.get(`/circle/boSupplierProduct/queryBySupplierId`, params)
  },
  // 取消我的店铺 收藏
  cancelMyShop(openId, storeId) {
    return minRequest.put(`/mall/bcsShopInfo/cancelMyShop?openId=${openId}&storeId=${storeId}`)
  },
  //新历史组局接口
  queryPastGroupPage(params) {
    return minRequest.get(`/group/info/queryPastGroupPage`, params)
  },
  //删除组局记录
  deleteMyGroup(id) {
    return minRequest.delete(`/group/mgMyGroup/delete?id=${id}`)
  },

  // 获取已发布列表信息
  queryReleaseGroupPage(params) {
    return minRequest.get(`/group/info/queryReleaseGroupPage`, params)
  },
  //
  //新接口 待参加组局 查询
  queryWaitGroupPage(params) {
    return minRequest.get(`/group/info/queryWaitGroupPage`, params)
  },
  //新接口 查询组局详情
  queryGroupDetails(params) {
    return minRequest.get(`/group/info/queryDetails`, params)
  },
  //
  queryCompanyManage(params) {
    return minRequest.get(`/company/bcCompanyManage/queryById`, params)
  },
  //快速建群查询列表
  findMyGroup(params) {
    return minRequest.get(`/book/txlGroup/findMyGroup`, params)
  },
  // 查询待编辑组局数量
  quertyPartyEditNum(params) {
    return minRequest.get(`xxxx`, params)
  },
  //获取近期约饭列表
  getLastDealPartyList(params) {
    return minRequest.get(`/group/mgMyMembers/memberList`, params)
  },
  //获取组局徽标 草稿箱 待参加
  getNumberJoinPartyAndEdit(params) {
    return minRequest.get(`/group/info/numberDisplay`, params)
  },
  //约饭列表 新增人员
  addMeetMembers(params) {
    return minRequest.post(`/group/mgMyMembers/add`, params)
  },
  //删除约饭的人
  deleteMeetMembers(id) {
    return minRequest.delete(`/group/mgMyMembers/delete?id=${id}`)
  },
  //编辑约饭的人 (只能编辑手动添加的人)
  editMeetMembers(params) {
    return minRequest.put(`/group/mgMyMembers/edit`, params)
  },
  //查询约饭列表 通过openId
  queryMeetMembersByOpenId(params) {
    return minRequest.get(`/group/mgMyMembers/memberList`, params)
  },
  //查询约饭列表分页查询
  queryMeetMembers(params) {
    return minRequest.get(`/group/mgMyMembers/list`, params)
  },
  //查询约饭列表详情
  queryMeetMembersDetailById(params) {
    return minRequest.get(`/group/mgMyMembers/queryById`, params)
  },
  //历史组局中插入成员
  exitMgGroupMembers(params) {
    return minRequest.put(`/group/info/exitMgGroupMembers`, params)
  },
  //组局查询详情
  queryDetailByGroupId(params) {
    return minRequest.get(`/group/info/queryDetails`, params)
  },
  // 待参加组局 新接口
  queryWaitGroupPage(params) {
    return minRequest.get(`/group/info/queryWaitGroupPage`, params)
  },
  //聊天未读消息徽标数量
  queryChatUnReadNumber(params) {
    return minRequest.get(`/mc/message/mcMyChat/unReadNumber`, params)
  },
  // 生成商品优惠券
  createGoodsCoupon(params) {
    return minRequest.post(`/mall/bcsCouponInfo/addCoupon`, params)
  },
  //删除组局信息 /group/info/delete
  deleteGroupInfoById(id) {
    return minRequest.delete(`/group/info/delete?id=${id}`)
  },
  //百度名片识别
  distinguishCardByBaidu(params) {
    return minRequest.get(`/bd/card`, params)
  },
  //快速建群 删除照片
  deleteGroupPhotoById(id) {
    return minRequest.delete(`/book/txlAlbumPhoto/delete?id=${id}`)
  },
  // 消息数量-好友申请数量、组局邀请数量、系统通知数量
  queryUnreadNotifyNum(params) {
    return minRequest.get(`/mc/message/mcChatRoom/queryUnreadNotifyNum`, params)
  },
  //获取视频封面列表
  getVideoImgLists(params) {
    return minRequest.get(`/media/mrMediaInfo/pageList`, params)
  },
  // 个人简介 增改查
  queryCardIntroductionById(params) {
    return minRequest.get(`/card/bcCardIntroduction/queryByCardId`, params)
  },
  createCardIntroduction(params) {
    return minRequest.post(`/card/bcCardIntroduction/add`, params)
  },
  editCardIntroduction(params) {
    return minRequest.put(`/card/bcCardIntroduction/edit`, params)
  },
  getSignTableLists(params) {
    return minRequest.get(`/circle/qzActivity/applicantList`, params)
  },
  getMyVideoLists(params) {
    return minRequest.get(`/media/mrMediaInfo/list`, params)
  },

  // 消息-分页列表查询
  getNewsList(params, token) {
    return minRequest.get(`/news/xxNews/querySysNewsPageList`, params, token)
  },
  // 消息-详情
  getNewsDetail(params, token) {
    return minRequest.get(`/news/xxNews/queryByIdForMini`, params, token)
  },
  // user页面 查询最近一次待参加组局
  getClockparty(params) {
    return minRequest.get(`/group/mgMyGroup/clock`, params)
  },
  //
  // 统计总览  查询名片访问记录
  getAccessRecord(params) {
    return minRequest.get(`/statistics/bcViewStatistics/getAccessRecord`, params)
  },
  // 分页查询 根据日期查询名片访问记录
  getAccessRecordByDate(params) {
    return minRequest.post(`/statistics/bcViewStatistics/getAccessRecordByDate`, params)
  },
  // 校验是否是名片好友
  verifyCardFriends(params) {
    return minRequest.get(`/card/bcCardBuddy/verifyCardFriends`, params)
  },
  addVideoPlayNumer(mediaId) {
    return minRequest.put(`/media/mrMediaInfo/addPlayAmount?mediaId=${mediaId}`,)
  },
  // 子群在母群中没有的的人
  queryMemberLack(params) {
    return minRequest.get(`/book/txlGroupMember/queryMemberLack`, params)
  },
  // 子群在母群中没有的的人
  listRememberedUsername(params) {
    return minRequest.get(`/mall/bcsCouponPassword/listRememberedUsername`, params)
  },
  // 群组表-通过id查询
  getTxlGroupById(params) {
    return minRequest.get(`/book/txlGroup/queryById`, params)
  },
  //
  judgeJoinQuickGroupByOpenId(params) {
    return minRequest.get(`/book/txlGroupMember/queryState`, params)
  },
  //查询微信审核状态
  queryAppAudit() {
    return minRequest.get(`/manage/ebcFunction/queryAppAudit`)
  },
  //好友名片表-根据名片id与好友名片id添加收藏
  updateFriendCollect(params) {
    return minRequest.get(`/card/bcCardBuddy/updateFriendCollect`, params)
  },
  // 公司管理表-根据名片Id查询公司审核信息
  getCompanyByCardId(params) {
    return minRequest.get(`/company/bcCompanyManage/queryByCardId`, params)
  },
  searchDefaultCard(params) {
    return minRequest.get(`/card/bcCardBuddy/searchDefaultCard`, params)
  },
  getMediaDetailById(params) {
    return minRequest.get(`/media/mrMediaInfo/getId`, params)
  },
  //客服反馈
  addFeedback(params) {
    return minRequest.post(`/feedback/fbFeedback/add`, params)
  },
  feedbackList(params) {
    return minRequest.get(`/feedback/fbFeedback/listByOpenId`, params)
  },
  feedbackDetail(params) {
    return minRequest.get(`/feedback/fbFeedback/queryById`, params)
  },
  editFeedback(params) {
    return minRequest.put(`/feedback/fbFeedback/edit`, params)
  },
  //名片模板
  cardTemplateList(params) {
    return minRequest.get(`/template/tcTemplateCard/listByOpenId`, params)
  },
  addCardTemplate(params) {
    return minRequest.post(`/template/tcTemplateCard/add`, params)
  },
  editCardTemplate(params) {
    return minRequest.put(`/template/tcTemplateCard/edit`, params)
  },
  cardTemplateDetail(params) {
    return minRequest.get(`/template/tcTemplateCard/queryById`, params)
  },
  delCardTemplateById(id) {
    return minRequest.delete(`/template/tcTemplateCard/delete?id=${id}`)
  },
  //生成分享模板id
  shareCardTemplate(id) {
    return minRequest.post(`/template/tcTemplateCard/share/${id}`)
  },
  //
  shareCardTemplateDetail(params) {
    return minRequest.get(`/template/tcTemplateShare/queryById`, params)
  },
  //帮助中心列表
  getHelpList(params) {
    return minRequest.get(`/help/uhUseHelp/list`, params)
  },
  //查询是否显示首页指引
  checkGuideVideo(params) {
    return minRequest.get(`/help/uhUseHelpRecord/queryByOpenId`, params)
  },
  //关闭 首页指引
  closedGuideVideo(openId) {
    return minRequest.get(`/help/uhUseHelpRecord/editByOpenId?status=2&openId=${openId}`)
  },
  //帮助中心详情
  getHelpListDetail(params) {
    return minRequest.get(`/help/uhUseHelp/queryById`, params)
  },
  //小店模块开始
  //小店模块商品列表
  getGoodsList(params) {
    return minRequest.get(`/shop/msShopProd/queryProdPage`, params)
  },

  //小店模块新增我的商品
  addMyGoods(params) {
    return minRequest.post(`/shop/msShopProd/addInfo`, params)
  },
  //小店模块删除我的商品
  delMyGoods(id) {
    return minRequest.delete(`/shop/msShopProd/delete?id=${id}`)
  },
  //小店模块编辑我的商品
  editMyGoods(params) {
    return minRequest.put(`/shop/msShopProd/edit`, params)
  },
  //小店模块-添加商品订单
  addShopOrder(params) {
    return minRequest.post(`/shop/msShopOrder/addShopOrder`, params)
  },
  //
  //小店模块-赠送商品
  addProductGive(params) {
    return minRequest.post(`/shop/msShopOrder/addProductGive`, params)
  },
  //小店模块订单列表
  getOrderList(params) {
    return minRequest.get(`/shop/msShopOrder/list`, params)
  },
  //小店模块订单详情
  getOrderDetail(params) {
    return minRequest.get(`/shop/msShopOrder/queryById`, params)
  },
  //小店模块新增我的订单
  addOrder(params) {
    return minRequest.post(`/shop/msShopOrder/add`, params)
  },
  //小店模块编辑订单
  editOrder(params) {
    return minRequest.put(`/shop/msShopOrder/edit`, params)
  },
  //小店模块被分享人填写收货信息
  insertTakeInfo(params) {
    return minRequest.put(`/shop/msShopOrder/insertTakeInfo`, params)
  },
  // 新商城
  getCategoryList(params) {
    return minRequest.get(`/category/categoryInfo`, params)
  },
  //商品分类
  getProdList(params) {
    return minRequest.get(`/prod/pageProd`, params)
  },
  //购物车列表
  getCartList(params) {
    return minRequest.post(`/p/shopCart/info`, params)
  },
  //购物车更新
  changeCartItem(params) {
    return minRequest.post(`/p/shopCart/changeItem`, params)
  },
  //删除购物车中商品
  delCartItem(params) {
    return minRequest.delete(`/p/shopCart/deleteItem`, params)
  },
  //购物车计算总价
  calTotalPrice(params) {
    return minRequest.post(`/p/shopCart/totalPay`, params)
  },
  //查询收藏量
  getCollectionCount(params) {
    return minRequest.get(`/p/user/collection/count`, params)
  },
  //查询收藏量
  getOrderCount(params) {
    return minRequest.get(`/p/myOrder/orderCount`, params)
  },
  //查询地址列表
  getAddressList(params) {
    return minRequest.get(`/p/address/list`, params)
  },
  //设为默认地址
  setAddressList(addrId) {
    return minRequest.put(`/p/address/defaultAddr/${addrId}`)
  },

  //提交订单
  submitOrder(params) {
    return minRequest.post(`/p/order/submit`, params)
  },
  //拉取微信支付
  wxPay(params) {
    return minRequest.post(`/wx/pay`, params)
  },
  //转载视频到我的视频
  shareVideoToMy(params) {
    return minRequest.post(`/media/mrMediaInfo/transmit`, params)
  },
  //添加支付信息
  addPayInfo(params) {
    return minRequest.post(`/shop/msPayInfo/addPayInfo`, params)
  },
  //编辑支付信息
  editPayInfo(params) {
    return minRequest.put(`/shop/msPayInfo/editPayInfo`, params)
  },
  //支付信息通过用户id查询支付信息
  getPayInfo(params) {
    return minRequest.get(`/shop/msPayInfo/getPayInfo`, params)
  },
  //校验支付信息是否存在
  verifyExist(params) {
    return minRequest.get(`/shop/msPayInfo/verifyExist`, params)
  },
  //删除代金券
  delMyCoupon(id) {
    return minRequest.delete(`/delete?id=${id}`)
  },
  // 小店-我的订单列表
  getMsShopOrderList(params) {
    return minRequest.get(`/shop/msShopOrder/list`, params)
  },


  //小店图片素材
  getShopImgs(params) {
    return minRequest.get(`/shop/msImageStyle/list`, params)
  },
  // 小店-我的赠送订单列表
  getMsSendShopOrderList(params) {
    return minRequest.post(`/casugn-business/shop/msOrderInfo/queryMyGiving`, params)
  },
  // 小店-我的领取订单列表
  getMsReceiveShopOrderList(params) {
    return minRequest.post(`/casugn-business/shop/msOrderInfo/queryMyReceive`, params)
  },
  // 小店-我的售出订单列表
  getMsSoldShopOrderList(params) {
    return minRequest.post(`/casugn-business/shop/msOrderInfo/queryMySold`, params)
  },
  // 小店-我的售出订单列表
  getMsBuyShopOrderList(params) {
    return minRequest.post(`/casugn-business/shop/msOrderInfo/queryMyBuy`, params)
  },

  // 小店-全部商品-商品-列表
  getProdShopPage(params) {
    return minRequest.get(`/casugn-business/shop/msShopProd/queryProdPage`, params)
  },
  // 小店-全部商品-商品-商品详情
  getProdShopDetail(params) {
    return minRequest.get(`/casugn-business/shop/msShopProd/queryProdDetail`, params)
  },
  // 小店-全部商品-大礼包-列表
  getMsGiftPacksPage(params) {
    return minRequest.get(`/casugn-business/shop/msGiftPacks/list`, params)
  },
  // 小店-全部商品-大礼包-详情
  getMsGiftPacksPageDetail(params) {
    return minRequest.get(`/shop/msGiftPacks/getGiftDetail`, params)
  },
  //查询他人赠送大礼包详情
  getGiftPacks(params) {
    return minRequest.get(`/shop/msGiftCode/queryById`, params)
  },
  // 小店-礼包-通过id删除
  delteMyGiftPacks(id) {
    return minRequest.delete(`/shop/msGiftPacks/delete?id=${id}`)
  },
  getMsGiftsGoods(params) {
    return minRequest.get(`/shop/msGiftProd/queryById`, params)
  },
  createGiftPacks(params) {
    return minRequest.post(`/shop/msGiftPacks/createGiftPacks`, params)
  },
  //赠送大礼包
  addGiftPresenteds(params) {
    return minRequest.post(`/shop/msGiftPacks/addGiftPresented`, params)
  },
  //-领取礼包
  getGiftPresented(params) {
    return minRequest.post(`/shop/msGiftPacks/getGiftPresented`, params)
  },
  //代金券表-创建代金券（小程序）
  createVoucher(params) {
    return minRequest.post(`/casugn-business/shop/msVoucher/createVoucher`, params)
  },
  // 代金券表-分页列表查询
  getMsVoucherPage(params) {
    return minRequest.get(`/casugn-business/shop/msVoucher/list`, params)
  },
  // 代金券表-分页列表查询
  getMsVoucherInfo(params) {
    return minRequest.get(`/casugn-business/shop/msVoucher/queryById`, params)
  },
  // 代金券-作废
  delteMyCoupon(id) {
    return minRequest.delete(`/casugn-business/shop/msVoucher/delete?id=${id}`)
  },
  // 代金券-分享
  shareVoucher(params) {
    return minRequest.post(`/casugn-business/shop/msVoucher/shareVoucher`, params)
  },
  // 订单接口详情查询
  queryOrderDetailById(params) {
    return minRequest.get(`/shop/msShopOrder/queryById`, params)
  },
  // 获取大礼包详情
  getMsGiftCodeById(params) {
    return minRequest.get(`/casugn-business/shop/msOrderInfo/queryGiftDetail`, params)
  },
  // 我的订单-发货
  addDelivery(params) {
    return minRequest.post(`/casugn-business/shop/msShopOrder/addDelivery`, params)
  },
  // 我的订单-发货完成
  addDeliveryFinish(params) {
    return minRequest.post(`/casugn-business/shop/msShopOrder/addComplete`, params)
  },
  // 我的订单-批量发货
  addDeliveryBatch(params) {
    return minRequest.post(`/casugn-business/shop/msShopOrder/addDeliveryList`, params)
  },
  // 我的订单-批量发货完成
  addDeliveryFinishBatch(params) {
    return minRequest.post(`/casugn-business/shop/msShopOrder/addCompleteList`, params)
  },
  // 企业订单-赠送商品列表
  getCompanyGivingPage(params) {
    return minRequest.post(`/casugn-business/shop/msOrderInfo/queryCompanyGiving`, params)
  },
  // 企业订单-我的售出商品列表
  getCompanySoldPage(params) {
    return minRequest.post(`/casugn-business/shop/msOrderInfo/queryCompanySold`, params)
  },
  //领取分享商品
  getProductGivey(params) {
    return minRequest.post(`/shop/msShopOrder/getProductGive`, params)
  },
  // 我得订单-商品详情
  getMsVoucherById(params) {
    return minRequest.get(`/casugn-business/shop/msShopOrder/queryById`, params)
  },
  //领取代金券时查询详情
  getVoucherInfo(params) {
    return minRequest.get(`/shop/msVoucherCode/queryById`, params)
  },
  //领取代金券
  handleVoucher(params) {
    return minRequest.post(`/shop/msVoucher/getVoucher`, params)
  },
  //-查询礼包商品列表
  queryGiftPage(params) {
    return minRequest.get(`/shop/msGiftPacks/queryGiftPage`, params)
  },
  //-查询礼包商品列表
  queryMsVoucherCodeById(params) {
    return minRequest.get(`/shop/msVoucherCode/queryById`, params)
  },
  //代金券编号表-分页列表查询
  queryMsVoucherCodeList(params) {
    return minRequest.get(`/shop/msVoucherCode/list`, params)
  },
  //房车信息-分页列表查询
  getRvList(params) {
    return minRequest.get(`/rv/rvInformation/list`, params)
  },
  //房车信息-添加
  addRv(params) {
    return minRequest.post(`/rv/rvInformation/add`, params)
  },
  //房车信息-通过id查询
  queryByIdRv(params) {
    return minRequest.get(`/rv/rvInformation/queryById`, params)
  },
  //房车信息-编辑
  editRv(params) {
    return minRequest.put(`/rv/rvInformation/edit`, params)
  },
  //房车信息-通过id删除
  deleteRv(params) {
    return minRequest.delete(`/rv/rvInformation/delete?id=${params}`)
  },
  //房车信息-更改房车水电状态
  updateHydropowerState(params) {
    return minRequest.put(`/rv/rvInformation/updateHydropowerState`, params)
  },
  //房车使用记录-分页列表查询
  rvApplyRecordList(params) {
    return minRequest.get(`/rv/rvApplyRecord/list`, params)
  },
  //房车使用记录-添加
  rvApplyRecordAdd(params) {
    return minRequest.post(`/rv/rvApplyRecord/add`, params)
  },
  // 房车使用记录-编辑
  rvApplyRecordEdit(params) {
    return minRequest.put(`/rv/rvApplyRecord/edit`, params)
  },
  // 房车使用记录-通过id查询
  getRvApplyRecord(params) {
    return minRequest.get(`/rv/rvApplyRecord/queryById`, params)
  },
  //房车用户使用权限-通过房车查询使用用户
  getUserList(params) {
    return minRequest.get(`/rv/rvUserAuthority/queryByRvId`, params)
  },
  //房车用户使用权限-批量添加
  addBatch(params) {
    return minRequest.post(`/rv/rvUserAuthority/addBatch`, params)
  },
  //房车模块展示状态
  queryUserAuthority(params) {
    return minRequest.get(`/rv/rvUserAuthority/queryUserAuthority`, params)
  },
  // 获取历史订单（地址去重）
  queryOrderHistory(params) {
    return minRequest.get(`/shop/msShopOrder/queryHistory`, params)
  },
  // 根据用户id获取功能菜单权限（小程序）
  queryWaterAuth(params) {
    return minRequest.get(`/shop/msWaterManage/queryFunctionByOpenId`, params)
  },
  // 根据用户id查询商品信息（小程序）
  queryWaterGoodsInfo(params) {
    return minRequest.get(`/shop/msWaterManage/queryManageByOpenId`, params)
  },
  // 导出商品发货信息
  exportGoodsInfo(params) {
    return minRequest.get(`/shop/msShopOrder/exportOrder`, params, null, {responseType: 'ArrayBuffer'})
  },
  // 房车信息-查询房车设备在线状态
  getOnlineStatusById(params) {
    return minRequest.get(`/rv/rvInformation/getOnlineStatus`, params)
  },
  // 产品视频表-通过公司id查询
  getProductVideoByCompanyId(params) {
    return minRequest.get(`/product/proProductVideo/queryByCompanyId`, params)
  },
  // 产品视频表-添加
  addProductVideo(params) {
    return minRequest.post(`/product/proProductVideo/add`, params)
  },
  // 产品视频表-编辑
  editProductVideo(params) {
    return minRequest.put(`/product/proProductVideo/edit`, params)
  },
  // 产品视频表-删除
  deleteProductVideo(id) {
    return minRequest.delete(`/product/proProductVideo/delete?id=${id}`)
  },
//   政府名片-接口
//   获取首页轮播图
  getZfBanner(params) {
    return minRequest.get(`/government/zfPublicBanner/list`, params)
  },
  // 招商政策列表
  getPolicyList(params) {
    return minRequest.get(`/government/zfInvestmentInfo/list`, params)
  },
  // 行业报告列表
  getReportList(params) {
    return minRequest.get(`/government/zfIndustryReport/list`, params)
  },
  // 行业报告详情
  getReportById(params) {
    return minRequest.get(`/government/zfIndustryReport/queryById`, params)
  },
  // 招商政策详情
  getPolicyById(params) {
    return minRequest.get(`/government/zfInvestmentInfo/queryById`, params)
  },
  // 内容管理-添加功能项
  addBcCardFunction(params) {
    return minRequest.post(`/card/bcCardFunction/add`, params)
  },
  // 内容管理-编辑功能项
  editBcCardFunction(params) {
    return minRequest.put(`/card/bcCardFunction/edit`, params)
  },
  // 内容管理-根据id查询
  BcCardById(params) {
    return minRequest.get(`/card/bcCardFunction/queryById`, params)
  },
  // 内容管理-根据id删除
  deleteCardById(id) {
    return minRequest.delete(`/card/bcCardFunction/delete?id=${id}`)
  },

// 公开库-获取企业/政府名片列表
  getPublicCardList(params) {
    return minRequest.get(`/card/bcBusinessCard/queryPublicCardList`, params)
  },
//   留言列表
  getCardMessageList(params) {
    return minRequest.get(`/card/bcCardMessage/list`, params)
  },
//   查询点赞
  getBcCardLike(params) {
    return minRequest.get(`/card/bcCardLike/queryByLikeCardId`, params)
  },
  //   给别人点赞
  addBcCardLike(params) {
    return minRequest.post(`/card/bcCardLike/add`, params)
  },
//   查询是否给当前人点赞了
  isLike(params) {
    return minRequest.get(`/card/bcCardLike/queryByCardIdAndLikeId`, params)
  },
//   取消点赞
  cancleBcCardLike(params) {
    return minRequest.post(`/card/bcCardLike/cancelLike`, params)
  },
//   名片功能列表
  bcCardFunctionList(params) {
    return minRequest.get(`/card/bcCardFunction/list`, params)
  },
//   根据id查询名片功能
  bcCardFunctionById(params) {
    return minRequest.get(`/card/bcCardFunction/queryById`, params)
  },
//   发送留言
  sendCardMessage(params) {
    return minRequest.post(`/card/bcCardMessage/add`, params)
  },
//   获取双方留言记录
  getRecords(params) {
    return minRequest.get(`/card/bcCardMessage/getRecords`, params)
  },
//   留言已读
  updateToRead(params) {
    return minRequest.get(`/card/bcCardMessage/updateToRead`, params)
  },
//   商城新增--------
//   未创建用户,自动创建一个账号
  createUser(params) {
    return minRequest.get(`/card/bcBusinessCard/queryCurrentUser`, params)
  },
//   更新普通用户的信息
  updateUserInfo(params) {
    return minRequest.post(`/card/bcBusinessCard/updateUserInfo`, params)
  },
//   根据用户的id查询,自己的店铺
  getMyShopInfo(params) {
    return minRequest.get(`/shop/mssdShopEntry/list`, params)
  },
  // 根据cardId查询某个店铺
  getShopInfoByCard(params) {
    return minRequest.get(`/shop/mssdShopDetail/getDetailByCardId`, params)
  },
  // 根据cardid查自己的店铺信息
  getMyShopInfoByCard(params) {
    return minRequest.get(`/shop/mssdShopEntry/shopByCardId`, params)
  },
  //   创建店铺
  addMyShop(params) {
    return minRequest.post(`/shop/mssdShopEntry/add`, params)
  },
  //   编辑店铺
  editMyShop(params) {
    return minRequest.put(`/shop/mssdShopEntry/edit`, params)
  },
// //   商品列表查询
//   getShopGoods(params) {
//     return minRequest.get(`/shop/msShopProd/list`, params)
//   },
//   通过cardId查询店铺数据(订单量等)
  getBusinessData(params) {
    return minRequest.get(`/shop/mssdShopDetail/getBusinessData`, params)
  },
//   获取首页轮播图
  getMssdIndexImg(params) {
    return minRequest.get(`/shop/mssdIndexImg/list`, params)
  },
//   根据id查询某个店铺的信息
  getMssdShopDetail(params) {
    return minRequest.get(`/shop/mssdShopDetail/queryById`, params)
  },
//   获取收货地址列表
  getMssdUserAddrList(params) {
    return minRequest.get(`/shop/mssdUserAddr/list`, params)
  },
//   根据id获取收货地址
  getMssdUserAddrById(params) {
    return minRequest.get(`/shop/mssdUserAddr/queryById`, params)
  },
//   添加收货地址
  addMssdUserAddr(params) {
    return minRequest.post(`/shop/mssdUserAddr/add`, params)
  },
  //   编辑收货地址
  editMssdUserAddr(params) {
    return minRequest.put(`/shop/mssdUserAddr/edit`, params)
  },
  //   根据id删除收货地址
  delMssdUserAddr(id) {
    return minRequest.delete(`/shop/mssdUserAddr/delete?id=${id}`)
  },
//   获取消息列表
  getMssdShopMessage(params) {
    return minRequest.get(`/shop/mssdShopMessage/list`, params)
  },
// 获取应付金额
  getShopOrder(params) {
    return minRequest.post(`/shop/msShopOrder/getPayable`, params)
  },
// 商品评价
  addMssdProdComm(params) {
    return minRequest.post(`/shop/mssdProdComm/add`, params)
  },
  // 获取评论列表
  getMssdsProdCommList(params) {
    return minRequest.get(`/shop/mssdProdComm/list`, params)
  },

  // 申请退款
  addMssdOrderRefund(params) {
    return minRequest.post(`/shop/mssdOrderRefund/refund`, params)
  },
// 获取退款列表
  getMssdOrderRefundList(params) {
    return minRequest.get(`/shop/mssdOrderRefund/list`, params)
  },
//   商家审核退款
  sellerRefundReview(params) {
    return minRequest.post(`/shop/mssdOrderRefund/sellerRefundReview`, params)
  },
// 用户退款---发货
  refundExpress(params) {
    return minRequest.post(`/shop/mssdOrderRefund/refundExpress`, params)
  },
  // 用户退款---商家收货
  refundGoods(params) {
    return minRequest.post(`/shop/mssdOrderRefund/refundGoods`, params)
  },
//   商家沟通记录
  getMssdShopMessagelist(params) {
    return minRequest.get(`/shop/mssdShopMessage/list`, params)
  },
// 获取沟通历史记录
  getMssdShopRecords(params) {
    return minRequest.get(`/shop/mssdShopMessage/getRecords`, params)
  },
//   发送聊天
  sendMssdShopMessage(params) {
    return minRequest.post(`/shop/mssdShopMessage/add`, params)
  },
//   更新消息为已读
  updateToReadByShop(params) {
    return minRequest.get(`/shop/mssdShopMessage/updateToRead`, params)
  },
// 店铺-根据店铺id查询账户列表
  getShopProdByCardId(params) {
    return minRequest.get(`/shop/mssdShopAccount/list`, params)
  },
// 店铺-绑定银行卡
  addShopAccount(params) {
    return minRequest.post(`/shop/mssdShopAccount/add`, params)
  },
// 店铺-编辑银行卡信息

  editShopAccount(params) {
    return minRequest.put(`/shop/mssdShopAccount/edit`, params)
  },
  // 店铺-删除银行卡信息(解绑)
  delShopAccount(id) {
    return minRequest.delete(`/shop/mssdShopAccount/delete?id=${id}`)
  },
// 店铺-查询我的店铺提现基本数据
  getShopWithdrawalInfo(params) {
    return minRequest.get(`/shop/mssdShopWithdrawals/withdrawalInfo`, params)
  },
//  店铺-查询提现记录
  getShopWithdrawalList(params) {
    return minRequest.get(`/shop/mssdShopWithdrawals/list`, params)
  },
//   店铺-查询收益记录
  getShopEarningsList(params) {
    return minRequest.get(`/shop/mssdShopEarnings/list`, params)
  },
//   店铺-提现申请
  addShopWithdrawals(params) {
    return minRequest.post(`/shop/mssdShopWithdrawals/withdrawalApply`, params)
  },
// 分销-根据店铺id查询账户列表
  getFxProdByCardId(params) {
    return minRequest.get(`/shop/daDistributionAccount/list`, params)
  },
//    分销 -绑定银行卡
  addFxAccount(params) {
    return minRequest.post(`/shop/daDistributionAccount/add`, params)
  },
  // 分销-编辑银行卡信息

  editFxAccount(params) {
    return minRequest.put(`/shop/daDistributionAccount/edit`, params)
  },
  // 分销-删除银行卡信息(解绑)
  delFxAccount(id) {
    return minRequest.delete(`/shop/daDistributionAccount/delete?id=${id}`)
  },
// 分销-查询我的分销提现基本数据
  getFxWithdrawalInfo(params) {
    return minRequest.get(`/shop/daDistributionWithdrawals/daWithdrawalInfo`, params)
  },

//   分销-查询收益记录
  getFxEarningsList(params) {
    return minRequest.get(`/shop/daDistributionEarnings/list`, params)
  },
  //   分销-提现申请
  addFxWithdrawals(params) {
    return minRequest.post(`/shop/daDistributionWithdrawals/daWithdrawalApply`, params)
  },
//   分销-提现记录查询
  getFxWithdrawalList(params) {
    return minRequest.get(`/shop/daDistributionWithdrawals/list`, params)
  },

}
